import Vue from 'vue'
import Router from 'vue-router'

import Center from '../pages/Center/Center.vue'
import Daily from '../pages/Daily/Daily.vue'
import Index from '../pages/Index/Index.vue'
import User from '../pages/User/User.vue'
import Login from '../pages/Login/Login.vue'
import Score from '../pages/Index/Score/Score.vue'
import Subject from '../components/Subject/Subject'
import Paper from '../pages/Paper/Paper'
import GuideList from '../pages/Index/Guide/GuideList'
import Guide from '../pages/Index/Guide/Guide'
import Bus from '../pages/Index/Bus/Bus'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/index'
        },
        {
            path: '/index',
            name: 'Index',
            component: Index,
            meta: {
                showFooter: true
            }
        },
        {
            path: '/daily',
            name: 'Daily',
            component: Daily,
            meta: {
                showFooter: true
            }
        },
        {
            path: '/center',
            name: 'Center',
            component: Center,
            meta: {
                showFooter: true
            }
        },
        {
            path: '/user',
            name: 'User',
            component: User,
            meta: {
                showFooter: true
            }
        },
        {
            path: '/login',
            name: 'Login',
            component: Login
        },
        {
            path: '/score',
            name: 'Score',
            component: Score
        },
        {
            path: '/subject',
            name: 'Subject',
            component: Subject
        },
        {
            path: '/paper',
            name: 'Paper',
            component: Paper
        },
        {
            path: '/guideList',
            name: 'GuideList',
            component: GuideList
        },
        {
            path: '/guide',
            name: 'Guide',
            component: Guide
        },
        {
            path: '/bus',
            name: 'Bus',
            component: Bus
        },
    ]
})
